import request from '@/utils/request'

//查询列表
export function queryAllPaySybject(params){
    return request({
        url: '/aqsc/paySubject/list',
        method: 'get',
        params: params
    })
}

//根据id查询用户详细内容
export function queryDeptById(id){
    return request({
        url: 'aqsc/paySubject/payDeptDto/'+id,
        method: 'get',

    })

}
//新增
export function save(data){
    // console.info(data)
    return request({
        url:'aqsc/paySubject',
        method: 'post',
        data: data
    })
}

//修改
export function edit(data){
    return request({
        url:'aqsc/paySubject',
        method: 'put',
        data: data
    })
}
//查询部门名称
export function querySysDept(){
    return request({
        url: 'system/dept/list',
        method: 'get'
    })
}
//根据coding查询id
export function queryIdByCoding(data){
    return request ({
        url: 'aqsc/paySubject/code',
        method: 'get',
        params: data
    })
}
